package com.kushe.site.form;

import com.kushe.util.core.FormValidator;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by WhiteBlue on 15/5/3.
 */
public class EditInfoForm extends FormValidator {

    public EditInfoForm(HttpServletRequest request) {
        super(request);
    }

    @Override
    public void validate() {
        validateString("eamil", false, 0, 50);
        validateString("address", false, 0, 50);
        validateString("feeling", false, 0, 50);
        validateNumber("sex", false, 0, 3);
        validateString("name", false, 0, 20);
        validateNumber("postNumber", false, 0, 20);
        validateString("trueName", false, 0, 20);
        validateNumber("phone", false, 0, 20);
    }
}
